package alarm;

public class StringFilter extends AbstractFilter {

	String str;

	public StringFilter() {
		str="stam";
	}

	public StringFilter(String s) {
		str = s;
	}

	public boolean accept(Event e) {
		if (str.contains(e.what()) || e.what().contains(str)) {
			return true;
		}
		return false;
	}

}
